package com.farm.device.feign;

import com.farm.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "device")
public interface DeviceFeign {
    @GetMapping("/findById/{id}")
    public Result findById(@PathVariable Integer id);

    @GetMapping("/findAll")
    public Result findAll();
}
